@extends('extend.home')
@section('title','前台用户个人信息页面')
@section('content')
	<div class="men">
	<div class="container">
	    <div class="register">
	    		@if(session('info'))
                <div class="alert alert-success alert-dismissable text-center">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <strong><span class="glyphicon glyphicon-ok"></span></strong>&nbsp;&nbsp;&nbsp;<span>{{session('info')}}</span></div>
	            @endif
	            @if(session('error'))
	                <div class="alert alert-danger alert-dismissable text-center">
	                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	                <strong><span class="glyphicon glyphicon-ok"></span></strong>&nbsp;&nbsp;&nbsp;<span>{{session('error')}}</span></div>
	            @endif
			   
			   <div class="col-md-6 col-md-offset-3 login-right">
			  	
				<form action="/homeuser/update" method="post">
				  <div>
					<span>用户名<label>*</label></span>
					<input type="text" name="username" value=""> 
				  </div>
				  <div>
					<span>密码<label>*</label></span>
					<input type="password" name="password" value=""> 
				  </div>
				  <div>
					<span>邮箱<label>*</label></span>
					<input type="text" name="email" value="{{$user['email']}}"> 
				  </div>
				  <div>
					<span>手机号<label>*</label></span>
					<input type="text" name="phone" value=""> 
				  </div>
				  <div>
					<span>头像<label>*</label></span>
					<img src="" style="width:200px;height:100px" alt="">
					<input type="file" name="photo" value=""> 
				  </div>
				  {{csrf_field()}}
				  <a class="forgot" href="#">忘记密码?</a>
				  <input type="submit" value="修改">
			    </form>
			   </div>	
			   <div class="clearfix"> </div>
		</div>
	 </div>
</div>
@endsection